package com.xjtu.duansheli.service;

import com.xjtu.duansheli.entity.ProductInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 漩涡鸣人
 * @since 2020-10-24
 */
public interface ProductInfoService extends IService<ProductInfo> {
    public List<ProductInfo> getAllProduct(int current, int size);
    public ProductInfo getProductByid(Long pid);
    public int addProduct(ProductInfo product);
    public int updateProduct(ProductInfo product);
    public int deleteProduct(Long pid);
    public List<ProductInfo> getProductBysaleid(Long saleid);
    public int getTotal();
    public List<ProductInfo> searchProductByKey(String pName);
}
